import request from '@/utils/request'

// 查询列表
export function getInfoConfigList(params) {
  return request({
    url: '/system/field/config/list',
    method: 'get',
    params
  })
}

// 新增
export function addInfoConfig(data) {
  return request({
    url: '/system/field/config/add',
    method: 'post',
    data
  })
}
// 编辑
export function editInfoConfig(data) {
  return request({
    url: '/system/field/config/edit',
    method: 'post',
    data
  })
}
// 删除
export function deleteInfoConfig(data) {
  return request({
    url: '/system/field/config/delete',
    method: 'delete',
    data
  })
}

// 未分配字段查询列表
export function getUnMateList(data) {
  return request({
    url: '/system/field/level/unMateList',
    method: 'post',
    data
  })
}
// 分配字段保存
export function getMateLevel(data) {
  return request({
    url: '/system/field/level/mateLevel',
    method: 'post',
    data
  })
}